-- GENERATED SPELL FOR [Captain Redpath] --


function spell0_10937(pUnit, Event) --@Backhand,n/a--
pUnit:FullCastSpellOnTarget(6253,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10937', 2288, 1)
end

function spell1_10937(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(9128,pUnit)
pUnit:RegisterEvent('Sorts_10937', 676, 1)
end

function spell2_10937(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10937', 671, 1)
end

function spell3_10937(pUnit, Event) --@Summon Marduk the Black,Self--
pUnit:FullCastSpellOnTarget(18650,pUnit)
pUnit:RegisterEvent('Sorts_10937', 562, 1)
end

function Sorts_10937(pUnit, Event)
local choix_sorts_10937 = math.random(0, 3)
if choix_sorts_10937 == 0 then
pUnit:RegisterEvent('spell0_10937', 1, 1)
end
if choix_sorts_10937 == 1 then
pUnit:RegisterEvent('spell1_10937', 1, 1)
end
if choix_sorts_10937 == 2 then
pUnit:RegisterEvent('spell2_10937', 1, 1)
end
if choix_sorts_10937 == 3 then
pUnit:RegisterEvent('spell3_10937', 1, 1)
end
end

function mob10937_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10937', math.random(1500, 3000), 1)
end

function mob10937_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10937_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10937_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10937, 1, 'mob10937_Action')
RegisterUnitEvent(10937, 2, 'mob10937_Leave')
RegisterUnitEvent(10937, 3, 'mob10937_Kill')
RegisterUnitEvent(10937, 4, 'mob10937_Die')
